package com.changgou.search;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Author Tang
 * @Date 2020/9/16 14:02
 * @Description
 */
@SpringBootApplication
@EnableEurekaClient
/*
*当前微服务开启远程调用的功能,调用basePackages包中的资源
* search微服务要远程调用goods服务
*  1 search微服务从商品上下架的队列中获取消息数据
*  2 根据消息数据远程调用goods微服务获取sku集合数据
*  3 根据返回的数据进行索引库的添加和删除
* */
@EnableFeignClients(basePackages = {"com.changgou.goods.feign"})
public class SearchApplication {
    public static void main(String[] args) {
        SpringApplication.run(SearchApplication.class, args);
    }
}
